package com.dnjn.happiness.emo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.emo.domain.HappyLevel;
import com.dnjn.happiness.emo.mapper.HappyLevelMapper;
import com.dnjn.happiness.emo.service.IHappyLevelService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 分档 服务实现类
 * </p>
 *
 * @author Amber
 * @since 2023-10-09
 */
@Service
public class HappyLevelServiceImpl extends ServiceImpl<HappyLevelMapper, HappyLevel> implements IHappyLevelService {

    @Override
    public HappyLevel getLevelByUserHappinessScore(Long happinessScore) {
        return baseMapper.getLevelByUserHappinessScore(happinessScore);
    }

    @Override
    public Integer selectMaxScore() {
        return baseMapper.selectMaxScore();
    }
}
